#define _CRT_SECURE_NO_WARNINGS 1
#include"text.h"


void Test1()
{
	struct Node* plist = ListInit();
	struct Node* newplist = copyRandomList(plist);
	struct Node* cur = newplist;
	while (cur)
	{
		if (cur->random != NULL)
		{
			printf("[%d,%d]", cur->val, cur->random->val);
		}
		else
		{
			printf("[%d,NULL]", cur->val);
		}
		
		cur = cur->next;
	}
	printf("\n");
}
int main()
{
	Test1();
	return 0;
}